package com.zkthink.ceres.member.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.zkthink.base.entity.Entity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: --
 * @Date: 2022/02/18/20:17
 * @Description:
 */
@Data
@NoArgsConstructor
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("ceres_member_record")
@ApiModel(value = "MemberRecord", description = "用户在线时长记录")
@AllArgsConstructor
public class MemberRecord extends Entity<Long> {
    private static final long serialVersionUID = 1L;
    @ApiModelProperty(value = "用户id")
    @TableField(value = "uid")
    private Long uid;
    @ApiModelProperty(value = "性别")
    @TableField(value = "sex")
    private String sex;
    @ApiModelProperty(value = "age")
    @TableField(value = "age")
    private String age;
    @ApiModelProperty(value = "退出")
    @TableField(value = "end_time")
    private Date endTime;
    @ApiModelProperty(value = "状态")
    @TableField(value = "status")
    private String status;
    @ApiModelProperty(value = "登录时间")
    @TableField(value = "login_time")
    private Date loginTime;
}
